<?php
namespace app\index\controller;


class Index
{
    public function index()
    {
        $base = service('\app\manage\service\ApiBase');
        $data = [];
        // $data['ver'] = 'serveruser';
        // $data['module'] = 'user';
        // $data['controller'] = 'user';
        // $data['action'] = 'list';
        // $data['textData'] = '{"page":"1","list_rows":"15"}';
// http://www.yayiadmin.local/index/index/index

        $url = 'http://yayiproxy.local/proxy/queue';
        $data['query'] = json_encode([
            ["path"=>"serveruser/user/User/list","param"=>["page"=>"1","list_rows"=>"15"]],
            ["path"=>"serveruser/user/User/info","param"=>["id"=>"1"]]
        ]);
        $data['success'] = '1,0';

        return $base->getToken();
    }
    // {"path":"serveruser/user/User/list","param":{"page":"1","list_rows":"15"},"token":""}
    // {"page":1,"listRows":15,"cate_id":"","price_start":0,"price_end":0,"keywords":"","pattern":""}
    # 所有的控制器继承基类控制器
        # 基类控制器中进行 参数的验证 
    # 前台用户(游客角色)请求获取商品列表,携带参数:访问的接口名称 path: yayiadmin/user/login 参数 param 识别码 token: appid: appkey:
    # 没有token 获取token
    # 用token去验证是否有此接口的访问权限
    # 访问接口
    # 返回数据
}
 